library groupentity;

import 'package:json_annotation/json_annotation.dart';

part 'group_pojo.g.dart';

//flutter packages pub run build_runner build
@JsonSerializable()
class GroupEntity {
  factory GroupEntity.fromJson(Map<String, dynamic> json) =>
      _$GroupEntityFromJson(json);

  Map<String, dynamic> toJson(GroupEntity instance) =>
      _$GroupEntityToJson(instance);

  GroupEntity();

  /**
   * account : 100001
   * auth_rule : 0  是否需要验证
   * big_class_id : 1
   * create_by_id : 331820
   * create_date : 1552354835
   * description :
   * group_level : 0
   * group_logo :
   * id : 1
   * manager1_id : 0
   * manager2_id : 0
   * me_in : false
   * qrcode :
   * slogan :
   * small_class_id : 0
   * user_count : 2
   * user_level : 0 加圈等级限制
   */

  @JsonKey(name: "name")
  String name;
  @JsonKey(name: "auth_rule")
  int authRule;
  @JsonKey(name: "big_class_id")
  int bigClassId;
  @JsonKey(name: "create_by_id")
  int createById;
  @JsonKey(name: "create_date")
  int createDate;
  @JsonKey(name: "description")
  String description;
  @JsonKey(name: "group_level")
  int grade;
  @JsonKey(name: "group_logo")
  String groupLogo;
  @JsonKey(name: "id")
  int circleId;
  @JsonKey(name: "manager1_id")
  int manager1Id;
  @JsonKey(name: "manager2_id")
  int manager2Id;
  @JsonKey(name: "me_in")
  bool joinState;
  @JsonKey(name: "qrcode")
  String qrcode;
  @JsonKey(name: "slogan")
  String slogan;
  @JsonKey(name: "small_class_id")
  int smallClassId;
  @JsonKey(name: "user_count")
  int size;
  @JsonKey(name: "user_level")
  int userLevel;
  @JsonKey(name: "interest_id")
  int interestId;
}
